package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.service.ITravelCommentService;
import cn.wolfcode.trip.base.util.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("CommentMessages")
public class CommentMessageController {
   @Autowired
   private ITravelCommentService travelCommentService;

   @PutMapping("/{Uid}")
    public JSONResult changeStatus(@PathVariable Long Uid){
       travelCommentService.changeStatus(Uid);
        return new JSONResult();
    }

}
